package com.liwang.lanouhn.nvshengo.adapter;

/**
 * Created by lanouhn on 2016/10/14.
 */
//public class CosmeticliveAdapter extends RecyclerView.Adapter<CosmeticliveAdapter.CosmetivliveViewHolder>{
//    private Context context;
//    private
//
//    public CosmeticliveAdapter(Context context, List<CosmeticLiveInfo.DataBean.LiveListBean> liveListBean) {
//        this.context = context;
//        this.liveListBean = liveListBean;
//    }
//
//    @Override
//    public CosmetivliveViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
//        View view = LayoutInflater.from(context).inflate(R.layout.item_cosmeticlive,null);
//        CosmetivliveViewHolder holder =new CosmetivliveViewHolder(view);
//        return holder;
//    }
//
//    @Override
//    public void onBindViewHolder(CosmetivliveViewHolder holder, int position) {
//        if (liveListBean.get(position).getDuration()!=-1){
//            Picasso.with(context).load(liveListBean.get(position).getPicURL()).into(holder.iv_background);
//            Picasso.with(context).load(liveListBean.get(position).getAuthorUser().getHeadUrl()).into(holder.iv_head);
//            Picasso.with(context).load(liveListBean.get(position).getAuthorUser().getRoleImg()).into(holder.iv_label);
//            holder.tv_username.setText(liveListBean.get(position).getAuthorUser().getName());
//            holder.tv_title.setText(liveListBean.get(position).getTitle());
//            holder.tv_look.setText(liveListBean.get(position).getViewCount()+"");
//            holder.tv_comment.setText(liveListBean.get(position).getReplyCount()+"");
//
//        }
//
//    }
//
//    @Override
//    public int getItemCount() {
//        return liveListBean.size();
//    }
//
//    public class CosmetivliveViewHolder extends RecyclerView.ViewHolder{
//        private ImageView iv_head,iv_label,iv_background;
//        private TextView tv_title,tv_username,tv_look,tv_comment;
//        public CosmetivliveViewHolder(View itemView) {
//            super(itemView);
//            iv_background= (ImageView) itemView.findViewById(R.id.iv_background);
//            iv_head= (ImageView) itemView.findViewById(R.id.iv_head);
//            iv_label= (ImageView) itemView.findViewById(R.id.iv_label);
//            tv_title= (TextView) itemView.findViewById(R.id.tv_title);
//            tv_username= (TextView) itemView.findViewById(R.id.tv_username);
//            tv_look= (TextView) itemView.findViewById(R.id.tv_look);
//            tv_comment= (TextView) itemView.findViewById(R.id.tv_comment);
//        }
//    }
//}
